$OpenBSD: patch-configure,v 1.1 2017/02/26 20:27:21 sthen Exp $
--- configure.orig	Mon Jan 12 15:47:18 2004
+++ configure	Sun Feb 26 20:25:48 2017
@@ -38,6 +38,7 @@ int main(int, char **) {
   return 0;
 }
 EOF
+if [[ -z $CXX ]]; then
 CXX=unknown;
 for i in "CC" "g++" "cc" "$CC"; do
   if $i -c $tmp_file.C 2>/dev/null; then
@@ -45,6 +46,7 @@ for i in "CC" "g++" "cc" "$CC"; do
     break;
   fi;
 done;
+fi;
 if test "$CXX" = unknown; then
   $echo "Error: Could not find a working C++ compiler.";
   exit 1;
